package com.joke.mydiary.DaoImpl;

import java.util.ArrayList;

/**
 * 公共接口
 * Created by Administrator on 2015/11/30.
 */
public interface Dao<ID, VO> {

    public boolean insert(VO v);

    public boolean update(VO v);

    public boolean delete(ID id);

    public VO findById(ID id);

    public ArrayList<VO> findAll();

    public ArrayList<VO> findPageAll(int currentPage, int pageSize);
}
